package com.smartleanx.module.hrm.service.programme;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smartleanx.module.hrm.dal.dataobject.programme.HrmProgrammeEmployee;
import com.smartleanx.module.hrm.dal.mysql.programme.HrmProgrammeEmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mybatis-plus
 * @since 2024-11-28
 */
@Service
public class HrmProgrammeEmployeeServiceImpl extends ServiceImpl<HrmProgrammeEmployeeMapper, HrmProgrammeEmployee> implements HrmProgrammeEmployeeService {

    @Autowired
    private HrmProgrammeEmployeeMapper hrmProgrammeEmployeeMapper;

    @Override
    public List<HrmProgrammeEmployee> getProgrammeEmpList(Set<Long> empIds) {
        LambdaQueryWrapper<HrmProgrammeEmployee> queryWrapper = new LambdaQueryWrapper<HrmProgrammeEmployee>();
        queryWrapper.in(HrmProgrammeEmployee::getUserId,empIds);
        queryWrapper.in(HrmProgrammeEmployee::getProgrammeState,"1","2");
        return list(queryWrapper);
    }
}
